package com.huangkailong.gitimgbed.viewmodel;

import de.saxsys.mvvmfx.ViewModel;
import javafx.beans.property.SimpleStringProperty;
import javafx.beans.property.StringProperty;

/**
 * @author huangkl
 * @since 1.0.0
 */
public class MainViewModel implements ViewModel {
    /**
     * 图片 url
     */
    private final StringProperty imgUrl = new SimpleStringProperty();

    public StringProperty imgUrlProperty(){
        return this.imgUrl;
    }

    public String getImgUrl(){
        return this.imgUrl.get();
    }

    public void setImgUrl(String imgUrl){
        this.imgUrl.setValue(imgUrl);
    }
}
